Skip to content

Bump black from 25.9.0 to 26.3.1#525

Merged
frequenz-auto-dependabot[bot] merged 2 commits into
v1.x.xfrom
dependabot/pip/black-26.3.1
May 4, 2026
Merged

Bump black from 25.9.0 to 26.3.1#525
frequenz-auto-dependabot[bot] merged 2 commits into
v1.x.xfrom
dependabot/pip/black-26.3.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github May 2, 2026

Copy link
Copy Markdown
Contributor

Bumps black from 25.9.0 to 26.3.1.

Release notes

Sourced from black's releases.

26.3.1

Stable style

  • Prevent Jupyter notebook magic masking collisions from corrupting cells by using exact-length placeholders for short magics and aborting if a placeholder can no longer be unmasked safely (#5038)

Configuration

  • Always hash cache filename components derived from --python-cell-magics so custom magic names cannot affect cache paths (#5038)

Blackd

  • Disable browser-originated requests by default, add configurable origin allowlisting and request body limits, and bound executor submissions to improve backpressure (#5039)

26.3.0

Stable style

  • Don't double-decode input, causing non-UTF-8 files to be corrupted (#4964)
  • Fix crash on standalone comment in lambda default arguments (#4993)
  • Preserve parentheses when # type: ignore comments would be merged with other comments on the same line, preventing AST equivalence failures (#4888)

Preview style

  • Fix bug where if guards in case blocks were incorrectly split when the pattern had a trailing comma (#4884)
  • Fix string_processing crashing on unassigned long string literals with trailing commas (one-item tuples) (#4929)
  • Simplify implementation of the power operator "hugging" logic (#4918)

Packaging

  • Fix shutdown errors in PyInstaller builds on macOS by disabling multiprocessing in frozen environments (#4930)

Performance

  • Introduce winloop for windows as an alternative to uvloop (#4996)
  • Remove deprecated function uvloop.install() in favor of uvloop.new_event_loop() (#4996)
  • Rename maybe_install_uvloop function to maybe_use_uvloop to simplify loop installation and creation of either a uvloop/winloop evenloop or default eventloop (#4996)

Output

... (truncated)

Changelog

Sourced from black's changelog.

Version 26.3.1

Stable style

  • Prevent Jupyter notebook magic masking collisions from corrupting cells by using exact-length placeholders for short magics and aborting if a placeholder can no longer be unmasked safely (#5038)

Configuration

  • Always hash cache filename components derived from --python-cell-magics so custom magic names cannot affect cache paths (#5038)

Blackd

  • Disable browser-originated requests by default, add configurable origin allowlisting and request body limits, and bound executor submissions to improve backpressure (#5039)

Version 26.3.0

Stable style

  • Don't double-decode input, causing non-UTF-8 files to be corrupted (#4964)
  • Fix crash on standalone comment in lambda default arguments (#4993)
  • Preserve parentheses when # type: ignore comments would be merged with other comments on the same line, preventing AST equivalence failures (#4888)

Preview style

  • Fix bug where if guards in case blocks were incorrectly split when the pattern had a trailing comma (#4884)
  • Fix string_processing crashing on unassigned long string literals with trailing commas (one-item tuples) (#4929)
  • Simplify implementation of the power operator "hugging" logic (#4918)

Packaging

  • Fix shutdown errors in PyInstaller builds on macOS by disabling multiprocessing in frozen environments (#4930)

Performance

  • Introduce winloop for windows as an alternative to uvloop (#4996)
  • Remove deprecated function uvloop.install() in favor of uvloop.new_event_loop() (#4996)
  • Rename maybe_install_uvloop function to maybe_use_uvloop to simplify loop installation and creation of either a uvloop/winloop eventloop or default eventloop (#4996)

... (truncated)

Commits

@dependabot dependabot Bot added part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) type:tech-debt Improves the project without visible changes for users labels May 2, 2026
@dependabot dependabot Bot requested a review from a team as a code owner May 2, 2026 03:05
@dependabot dependabot Bot added part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) type:tech-debt Improves the project without visible changes for users labels May 2, 2026
@dependabot dependabot Bot requested review from llucax and removed request for a team May 2, 2026 03:05
@frequenz-auto-dependabot frequenz-auto-dependabot Bot added the tool:auto-merged Auto-approved Dependabot PRs label May 2, 2026
@llucax

llucax commented May 4, 2026

Copy link
Copy Markdown
Contributor

@dependabot rebase

Bumps [black](https://github.com/psf/black) from 25.9.0 to 26.3.1.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](psf/black@25.9.0...26.3.1)

---
updated-dependencies:
- dependency-name: black
  dependency-version: 26.3.1
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot force-pushed the dependabot/pip/black-26.3.1 branch from 5697988 to 1351473 Compare May 4, 2026 12:35
=== v26.3.1 =========================================================
Source: inline script

Collecting black==26.3.1
  Downloading black-26.3.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.metadata (91 kB)
Collecting click>=8.0.0 (from black==26.3.1)
  Downloading click-8.3.3-py3-none-any.whl.metadata (2.6 kB)
Collecting mypy-extensions>=0.4.3 (from black==26.3.1)
  Downloading mypy_extensions-1.1.0-py3-none-any.whl.metadata (1.1 kB)
Collecting packaging>=22.0 (from black==26.3.1)
  Downloading packaging-26.2-py3-none-any.whl.metadata (3.5 kB)
Collecting pathspec>=1.0.0 (from black==26.3.1)
  Downloading pathspec-1.1.1-py3-none-any.whl.metadata (14 kB)
Collecting platformdirs>=2 (from black==26.3.1)
  Downloading platformdirs-4.9.6-py3-none-any.whl.metadata (4.7 kB)
Collecting pytokens~=0.4.0 (from black==26.3.1)
  Downloading pytokens-0.4.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.metadata (3.8 kB)
Downloading black-26.3.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (1.8 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 74.5 MB/s  0:00:00
Downloading pytokens-0.4.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (268 kB)
Downloading click-8.3.3-py3-none-any.whl (110 kB)
Downloading mypy_extensions-1.1.0-py3-none-any.whl (5.0 kB)
Downloading packaging-26.2-py3-none-any.whl (100 kB)
Downloading pathspec-1.1.1-py3-none-any.whl (57 kB)
Downloading platformdirs-4.9.6-py3-none-any.whl (21 kB)
Installing collected packages: pytokens, platformdirs, pathspec, packaging, mypy-extensions, click, black

Successfully installed black-26.3.1 click-8.3.3 mypy-extensions-1.1.0 packaging-26.2 pathspec-1.1.1 platformdirs-4.9.6 pytokens-0.4.1

[notice] A new release of pip is available: 26.0.1 -> 26.1
[notice] To update, run: pip install --upgrade pip
reformatted /home/runner/work/frequenz-channels-python/frequenz-channels-python/src/frequenz/channels/experimental/_with_previous.py
reformatted /home/runner/work/frequenz-channels-python/frequenz-channels-python/tests/experimental/test_pipe.py
reformatted /home/runner/work/frequenz-channels-python/frequenz-channels-python/src/frequenz/channels/experimental/_grouping_latest_value_cache.py
reformatted /home/runner/work/frequenz-channels-python/frequenz-channels-python/tests/test_file_watcher.py
reformatted /home/runner/work/frequenz-channels-python/frequenz-channels-python/tests/test_anycast.py
reformatted /home/runner/work/frequenz-channels-python/frequenz-channels-python/tests/test_timer_integration.py
reformatted /home/runner/work/frequenz-channels-python/frequenz-channels-python/tests/test_broadcast.py
reformatted /home/runner/work/frequenz-channels-python/frequenz-channels-python/tests/test_timer.py

All done! ✨ 🍰 ✨
8 files reformatted, 40 files left unchanged.



The migration completed successfully.
@github-actions

github-actions Bot commented May 4, 2026

Copy link
Copy Markdown
Contributor

Black Migration

Update: 25.9.0 → 26.3.1

✅ Migration completed successfully.

Migration output
=== v26.3.1 =========================================================
Source: inline script

Collecting black==26.3.1
  Downloading black-26.3.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.metadata (91 kB)
Collecting click>=8.0.0 (from black==26.3.1)
  Downloading click-8.3.3-py3-none-any.whl.metadata (2.6 kB)
Collecting mypy-extensions>=0.4.3 (from black==26.3.1)
  Downloading mypy_extensions-1.1.0-py3-none-any.whl.metadata (1.1 kB)
Collecting packaging>=22.0 (from black==26.3.1)
  Downloading packaging-26.2-py3-none-any.whl.metadata (3.5 kB)
Collecting pathspec>=1.0.0 (from black==26.3.1)
  Downloading pathspec-1.1.1-py3-none-any.whl.metadata (14 kB)
Collecting platformdirs>=2 (from black==26.3.1)
  Downloading platformdirs-4.9.6-py3-none-any.whl.metadata (4.7 kB)
Collecting pytokens~=0.4.0 (from black==26.3.1)
  Downloading pytokens-0.4.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.metadata (3.8 kB)
Downloading black-26.3.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (1.8 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.8/1.8 MB 74.5 MB/s  0:00:00
Downloading pytokens-0.4.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (268 kB)
Downloading click-8.3.3-py3-none-any.whl (110 kB)
Downloading mypy_extensions-1.1.0-py3-none-any.whl (5.0 kB)
Downloading packaging-26.2-py3-none-any.whl (100 kB)
Downloading pathspec-1.1.1-py3-none-any.whl (57 kB)
Downloading platformdirs-4.9.6-py3-none-any.whl (21 kB)
Installing collected packages: pytokens, platformdirs, pathspec, packaging, mypy-extensions, click, black

Successfully installed black-26.3.1 click-8.3.3 mypy-extensions-1.1.0 packaging-26.2 pathspec-1.1.1 platformdirs-4.9.6 pytokens-0.4.1

[notice] A new release of pip is available: 26.0.1 -> 26.1
[notice] To update, run: pip install --upgrade pip
reformatted /home/runner/work/frequenz-channels-python/frequenz-channels-python/src/frequenz/channels/experimental/_with_previous.py
reformatted /home/runner/work/frequenz-channels-python/frequenz-channels-python/tests/experimental/test_pipe.py
reformatted /home/runner/work/frequenz-channels-python/frequenz-channels-python/src/frequenz/channels/experimental/_grouping_latest_value_cache.py
reformatted /home/runner/work/frequenz-channels-python/frequenz-channels-python/tests/test_file_watcher.py
reformatted /home/runner/work/frequenz-channels-python/frequenz-channels-python/tests/test_anycast.py
reformatted /home/runner/work/frequenz-channels-python/frequenz-channels-python/tests/test_timer_integration.py
reformatted /home/runner/work/frequenz-channels-python/frequenz-channels-python/tests/test_broadcast.py
reformatted /home/runner/work/frequenz-channels-python/frequenz-channels-python/tests/test_timer.py

All done! ✨ 🍰 ✨
8 files reformatted, 40 files left unchanged.


Next step

Migration changes were committed and auto-merge-on-changes is disabled. Please review, approve, and merge this PR manually.


📋 Full migration logs

@github-actions github-actions Bot added tool:black:migration:executed Migration script has been run part:tests Affects the unit, integration and performance (benchmarks) tests part:experimental Affects the experimental package labels May 4, 2026
@llucax llucax added the cmd:skip-release-notes It is not necessary to update release notes for this PR label May 4, 2026
@frequenz-auto-dependabot frequenz-auto-dependabot Bot added this pull request to the merge queue May 4, 2026
Merged via the queue into v1.x.x with commit e76ebef May 4, 2026
13 of 14 checks passed
@frequenz-auto-dependabot frequenz-auto-dependabot Bot deleted the dependabot/pip/black-26.3.1 branch May 4, 2026 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cmd:skip-release-notes It is not necessary to update release notes for this PR part:experimental Affects the experimental package part:tests Affects the unit, integration and performance (benchmarks) tests part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) tool:auto-merged Auto-approved Dependabot PRs tool:black:migration:executed Migration script has been run type:tech-debt Improves the project without visible changes for users

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant